<%@page import="br.unirio.pf.service.Imovel"%>
<%@include file="../_header.jsp"%>

<h1>Detalhes do im&oacute;vel</h1>

<form>
    <table border="2" style="text-align:center" align="center">  
        <tr><th colspan="12">Dados do im&oacute;vel</th></tr>
        <tr>           
            <th>&Aacute;rea</th>
            <th>Pre&ccedil;o</th>
            <th>N&uacute;mero de quartos</th>
            <th>Possui vaga de garagem</th>
            <th>Hor&aacute;rio do sol</th>
            <th>Outros detalhes</th>
            <th>Logradouro</th>
            <th>N&uacute;mero</th>
            <th>Complemento</th>
            <th>Bairro</th>
            <th>Cidade</th>
            <th>Estado</th>
	</tr>
        
        <tr>
            <td><%=((Imovel)request.getAttribute("imovel")).getImvArea()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImvPreco()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImvNumQuartos()%></td>
            <td><%if(!((Imovel)request.getAttribute("imovel")).isImvPosVagGaragem()) out.print("N&atilde;o"); else out.print("Sim");%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImvHorSol()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImvOtrDetalhes()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImvLogradouro()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImvNumero()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImvComplemento()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImvBairro()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImvCidade()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImvEstado()%></td>
        </tr>
    </table>
        <br></br>    
    <table border="2" style="text-align:center" align="center">
        
        <tr><th colspan="11">Dados da imobili&aacute;ria</th></tr>
        <tr>           
            <th>CNPJ</th>
            <th>Nome</th>
            <th>Telefone 1</th>
            <th>Telefone 2</th>
            <th>Telefone 3</th>
            <th>Logradouro</th>
            <th>N&uacute;mero</th>
            <th>Complemento</th>
            <th>Bairro</th>
            <th>Cidade</th>
            <th>Estado</th>
	</tr>
        
        <tr>
            <td><%=((Imovel)request.getAttribute("imovel")).getImbCnpj()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImbNome()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImbTel1()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImbTel2()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImbTel3()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImbLogradouro()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImbNumero()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImbComplemento()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImbBairro()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImbCidade()%></td>
            <td><%=((Imovel)request.getAttribute("imovel")).getImbEstado()%></td>
        </tr>
        
    </table>   
        <br></br> 
    <table align="center">
        <td><input type="button" value="Voltar" onClick="history.go(-1)"></input></td>
        <td><input type="button" onclick="javascript: location.href='ImovelServlet?comando=antesSubmeterProposta&id=<%=((Imovel)request.getAttribute("imovel")).getImvId()%>&cnpj=<%=((Imovel)request.getAttribute("imovel")).getImbCnpj()%>';" value="Submeter proposta" /></td>
    </table>
</form>
        
<%@include file="../_footer.jsp"%>